<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%@include file="/checkLoginSession.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
TopicService topicService=new TopicService();
List<Topic> topics=topicService.gettopic();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员上传文件</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="/MyProject/myjs/up.js"></script>
	<script type="text/javascript" charset="utf-8" src="myjs/jiaoyan.js"></script>
	
  </head>
  
  <body>
     <form action="adminUploadAction" enctype="multipart/form-data" method="post">
      
             所属类别<select name="CTopic_ID">
                  <option value="0">请选择</option>
                 <%
                 for(Topic t : topics){
                 %>
                  <option value="<%=t.getCTopic_ID() %>"><%=t.getCTopic_title()%></option>
                  <%
                  }
                  %>
             </select>
      <s:textfield name="CContent_topic">文件主题</s:textfield>
      <s:textfield name="CContent_author">文件作者</s:textfield>
      <s:textfield name="CContent_time">上传日期</s:textfield>
      <s:file name="upload" label="选择文件"/>
      <s:fielderror name="error"/>
      <s:submit value="上传" />
  </form>  
  </body>
</html>
